Does anyone know of a DXL function to retrieve the user-selected text within an attribute value in a DOORS module view?
|
Re: Retrieve user-selected text via DXL? Use the following code: //This dxl prints the current selected text from a module callStdItem_(clipCopyFlatItem) string strRichString = stringOf(richClip) RichText rt string strResult = "" for rt in strRichString do { strResult = strResult " " rt.text } print "Selected Text = " strResult "\n" Regards, Rony |
Re: Retrieve user-selected text via DXL? R@ny - Thu Feb 12 05:02:15 EST 2009 |
Re: Retrieve user-selected text via DXL? SystemAdmin - Thu Feb 12 05:54:23 EST 2009 Here is my little brick: You don't need to loop through rich text to display plain text: //This dxl prints the current selected text from a module callStdItem_(clipCopyFlatItem) string strRichString = stringOf(richClip) print "Selected Text = " (plainText strRichString) "\n" |